package top.kaoshanji.p1ch05g.main;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import top.kaoshanji.p1ch05g.config.ProjectConfig;
import top.kaoshanji.p1ch05g.model.Comment;
import top.kaoshanji.p1ch05g.services.CommentService;

/**
 * @author kaoshanji
 * ^_^
 * create time 2025/4/27 22:36
 */
public class Main {

    public static void main(String[] args) {

        var context = new AnnotationConfigApplicationContext(ProjectConfig.class);

        var commentService = context.getBean(CommentService.class);

        commentService.sendComment(new Comment());
        commentService.sendComment(new Comment());

    }


}
